package org.gongliang.jsmile.authc.task.entity;

import java.io.Serializable;

/**
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @author 龚亮
 * @version 1.0
 * @date 2018年09月13日 02:38:44
 */
public class QrtzTask implements Serializable{

	private static final long serialVersionUID = 1L;

	/**
	  * desc: 编号
	  */
	  private Integer id;
     
	 /**
	  * desc: 任务名称
	  */
	  private String jobName;
     
	 /**
	  * desc: 任务分组
	  */
	  private String jobGroup;
     
	 /**
	  * desc: cron表达式
	  */
	  private String cron;
     
	 /**
	  * desc: 任务执行时调用哪个类的方法 包名+类名
	  */
	  private String beanClass;
     
	 /**
	  * desc: 是否有状态
	  */
	  private String isConcurrent;
     
	 /**
	  * desc: 创建者
	  */
	  private Integer creator;
     
	 /**
	  * desc: 创建时间
	  */
	  private java.util.Date createDate;
     
	 /**
	  * desc: 修改者
	  */
	  private Integer updater;
     
	 /**
	  * desc: 修改时间
	  */
	  private java.util.Date updateDate;
     
	 /**
	  * desc: 描述
	  */
	  private String remark;
     
	 /**
	  * desc: 任务状态 1正常 0暂停 
	  */
	  private String taskStatus;
     
	 /**
	  * desc: 任务类型 01 周期任务 02 定时任务
	  */
	  private String taskType;
     

	public Integer getId(){
        return id;
    }

    public void setId(Integer id){
        this.id = id;
    }
	public String getJobName(){
        return jobName;
    }

    public void setJobName(String jobName){
        this.jobName = jobName;
    }
	public String getJobGroup(){
        return jobGroup;
    }

    public void setJobGroup(String jobGroup){
        this.jobGroup = jobGroup;
    }
	public String getCron(){
        return cron;
    }

    public void setCron(String cron){
        this.cron = cron;
    }
	public String getBeanClass(){
        return beanClass;
    }

    public void setBeanClass(String beanClass){
        this.beanClass = beanClass;
    }
	public String getIsConcurrent(){
        return isConcurrent;
    }

    public void setIsConcurrent(String isConcurrent){
        this.isConcurrent = isConcurrent;
    }
	public Integer getCreator(){
        return creator;
    }

    public void setCreator(Integer creator){
        this.creator = creator;
    }
	public java.util.Date getCreateDate(){
        return createDate;
    }

    public void setCreateDate(java.util.Date createDate){
        this.createDate = createDate;
    }
	public Integer getUpdater(){
        return updater;
    }

    public void setUpdater(Integer updater){
        this.updater = updater;
    }
	public java.util.Date getUpdateDate(){
        return updateDate;
    }

    public void setUpdateDate(java.util.Date updateDate){
        this.updateDate = updateDate;
    }
	public String getRemark(){
        return remark;
    }

    public void setRemark(String remark){
        this.remark = remark;
    }
	public String getTaskStatus(){
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus){
        this.taskStatus = taskStatus;
    }
	public String getTaskType(){
        return taskType;
    }

    public void setTaskType(String taskType){
        this.taskType = taskType;
    }
    
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (null == obj) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}

		QrtzTask task = (QrtzTask) obj;
		if (!(jobName + jobGroup).equals(task.getJobName() + task.getJobGroup())) {
			return false;
		}
		return true;
	}
}
